<?php
class Common_BlockController extends Clu_Controller_Action_Mini
{
	
	public function init()
	{
		//require_once (APP_PATH.'/modules/place/Model/Place.php');
		//require_once (APP_PATH.'/modules/article/Model/Article.php');
		//require_once (APP_PATH.'/modules/event/Model/Event.php');
		$this->mPlace = new place_Model_Place();
		$this->mArticle = new article_Model_Service();
		$this->m = new event_Model_Service();
		parent::init();
	}
	
	public function infoSupportAction()
	{
		//online support
		$regionId = $this->miniRequest['regionId'];
		$boxWeight = $this->miniRequest['boxWeight'];
		$this->renderToHolder('block/infoSupport.phtml', false, null, $regionId, $boxWeight);
	}
	
	public function autoLinkAction()
	{
		$regionId = $this->miniRequest['regionId'];
		$boxWeight = $this->miniRequest['boxWeight'];
		$this->view->cityId = $this->miniRequest['city_id'];
		$this->view->districtId = $this->miniRequest['district_id'];
		$this->view->cityName = $this->miniRequest['city_name'];
		$this->view->districtName = $this->miniRequest['district_name'];
		$this->view->rtype = $this->miniRequest['rtype'];
		$this->view->type = $this->miniRequest['type'];
		$this->view->rtypeName = $this->miniRequest['rtypeName'];
		$this->view->typeName = $this->miniRequest['typeName'];
		$this->view->placeName = $this->miniRequest['placeName'];
		$this->renderToHolder('block/auto-link.phtml', false, null, $regionId, $boxWeight);
	}
	
	public function questionAnswerAction()
	{
		$regionId = $this->miniRequest['regionId'];
		$boxWeight = $this->miniRequest['boxWeight'];
		$id = $this->miniRequest['placeId'];
		$this->renderToHolder('block/question-answer.phtml', false, null, $regionId, $boxWeight);
	}
}
?>